﻿using System.Data.Entity;
using Warranty.Configuration;
using Warranty.DBConfig;
using Warranty.Model.Model;

namespace Warranty.Data
{

    public class WarrantyEntities : DbContext
    {
        public WarrantyEntities() : base(SystemConfiguration.ConnectionString) { }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            //base.OnModelCreating(modelBuilder);
            modelBuilder.Configurations.Add(new OrderShipHistConfiguration());
        }

        public DbSet<OrderShipHist> OrderShipHistories { get; set; }
    }
}
